package insight.google.game.era.bo.policy.character;

import insight.google.game.era.bo.GameRoom;
import insight.google.game.era.bo.GameUser;
import insight.google.game.era.bo.card.GameCard;
import insight.google.game.era.client.proxy.PlayerClientProxy;
import insight.google.game.era.core.Util;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class GuoJiaPolicy extends CharacterPolicy {

    /**
	 * 
	 */
	private PlayerClientProxy playerClientProxy;

    public GuoJiaPolicy(String id, String name){
		super(id, name);
	}

	@Override
	public boolean beHurtedExec(GameUser original, GameUser[] targets,
			Map params) {
		// TODO Auto-generated method stub
		String jsComponenetId = (String)params.get("jsComponenetId");

		int cardCount = 2;
		GameRoom room = Util.getRoom();
		//send card to target user
        room.sendCardToUserByCount(original, cardCount);
//        for(int i=0; i<targets.length; i++){
//            GameUser tagUser = targets[i];
//            room.sendCardToUserByCount(original, cardCount);
//        }
		//change cards.

		return true;
	}

}
